<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<form id="submitForm" class="form-horizontal">
	
    <div class="form-group">
        <label class="col-sm-3 control-label" for="carNum"><font color="red">*</font>车牌号：</label>
        <div class="col-sm-8">
            <input class="form-control" type="text" id="carNum" name="carNum" placeholder="请填写车牌号"/>
            <div id="validation-username" class="validate-error help-block"></div>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-3 control-label" for="eqpId">车载终端：</label>
        <div class="col-sm-8">
            <select class="form-control span2" id="eqpId" name="roleid">
            <c:forEach items="${list}" var="role">
                <option value="${role.roleid}">${role.cname}</option>
            </c:forEach>
            </select>
        </div>
    </div>
    
    <div class="form-group">
        <label class="col-sm-3 control-label" for="state">是否可用：</label>
        <div class="col-sm-8">
            <div class="radio">
				<label style="display: inline-block; width: 50px;">
					<input checked value="1" name="state" type="radio" class="ace"/>是
				</label>
				<label style="display: inline-block; width: 50px;">
					<input value="0" name="state" type="radio" class="ace"/>否
				</label>
			</div>
        </div>
    </div>
</form>
<script type="text/javascript">
	submit = function(){
		frmValidate();
		var data = $("#submitForm").serialize();
		ajaxRequest("bus/car/add", data);
	}
</script>